<?php include 'product_detail_css_js.php';?>
<table width="988" cellspacing="0" cellpadding="0" border="0" align="center">
            <tbody><tr>
                <td width="9" background="/public/images/them/t.jpg">&nbsp;</td>

                <td width="970">
                    <table width="970" cellspacing="0" cellpadding="0" border="0" align="center">

                        <tbody>
                            <?php include 'top_menu.php';?>
                        <tr>
                            <td width="970">
                                <table width="970" cellspacing="0" cellpadding="0" border="0" bgcolor="#FFFFFF">
                                    <tbody><tr>
                                        <td width="5" valign="top">&nbsp;</td>
                                        <td width="200" valign="top">
                                            <div style="font-size: 1px; height: 2px;"></div>
                                            <table width="200" cellspacing="0" cellpadding="0" border="0" align="center">
                                                <tbody><tr>
                                                    <td align="center" id="amdtrai"><span id="mdtrai">SẢN PHẨM</span></td>
                                                </tr>
                                            </tbody></table>
<table width="200" cellspacing="0" cellpadding="0" border="0" align="center" id="bomenu">


              <tbody>
                  <?php foreach ($aryRootCategory as $key => $value) {?>
                    <tr>
                    <td width="20" align="right">
                        <img align="absmiddle" src="/public/images/them/cham.gif">
                    </td>
                    <td width="180" id="amenutrai">
                        <a id="menutrai" href="<?php echo $root_page;?>/danhmuc/<?php echo $value['category_id'];?>/<?php echo $value['category_name_filter'];?>.html"><?php echo $value['category_name'];?></a>
                    </td>
                    </tr>
                    <?php if(isset ($arySubcategory[$value['category_id']])){?>
                        <?php foreach ($arySubcategory[$value['category_id']]['sub_category'] as $key2 => $subCategory) {?>
                        <tr>
                            <td>&nbsp;</td>
                            <td id="amenutrai2">
                                <a id="menutrai2" class="<?php echo ($subCategory['category_id'] == $categoryId) ? 'selected' : '';?>" href="<?php $root_page;?>/danhmuc/<?php echo $subCategory['category_id'];?>/<?php echo $subCategory['category_name_filter'];?>.html">-&nbsp;<?php echo $subCategory['category_name'];?></a>
                            </td>
                        </tr>
                        <?php } ?>
                    <?php } ?>
                  <?php } ?>
</tbody>
</table>


                                            <div style="font-size: 1px; height: 10px;"></div>
                                            <?php include 'product_right_support.php';?>
                                        </td>
                                        <td width="3" valign="top">&nbsp;</td>
                                        <td width="100%" valign="top">

                                            <div style="font-size: 1px; height: 2px;"></div>
<table width="99%" cellspacing="2" cellpadding="2" border="0" align="center" id="bochinh">

  <tbody>
      <tr>
   <td id="asanpham" colspan="4">
       <span id="sanpham">
           <a  class='active' href="<?php echo $root_page;?>" title='Trang chủ'>Trang chủ</a><span> &gt; </span>
        <?php foreach ($categoryParent as $key => $value) {?>
            <?php if($key > 0){?>
                <span> &gt; </span>
            <?php } ?>
                <a href="/danhmuc/<?php echo $value['category_id'];?>/<?php echo $value['category_name_filter'];?>.html" title="<?php echo $value['category_name'];?>"><?php echo $value['category_name'];?></a>
        <?php } ?>
        </span>
   </td>
  </tr>
  <tr>
      <td valign="top" width="250px" align="center">
          <div><img src="<?php echo $aryProduct['product_large_image'];?>"></div>
      </td>
      <td valign="top">
          <div class="product_title_detail">
            <?php echo $aryProduct['product_title'];?>
          </div>
          <div class="product_title_detail">
              Giá bán: <span style="color: red;"><?php echo number_format($aryProduct['product_price_vnd'], 0, ',', '.'); ?>&nbsp;VNĐ</span>
          </div>
          <div class="product_title_detail">
              <?php if(in_array($aryProduct['product_id'], $aryOrderProductId)){?>
              Đặt mua:<span style="font-weight: normal;">
                    Đã có trong giỏ hàng.
                    <a href="/order/chi-tiet-gio-hang.html" style="color: red">Xem giỏ hàng</a>
                </span>
              <?php }else{?>
                Đặt mua: <span id="product_order_<?php echo $aryProduct['product_id'];?>"><img style="vertical-align: middle;cursor: pointer;" border="0" src="/public/images/them/mua.gif" onclick="MyController.addProductToShopCat(<?php echo $aryProduct['product_id']?>, <?php echo $aryProduct['product_category_id'];?>);"></span>
              <?php } ?>
          </div>
          <div class="product_title_detail">
              Hỗ trợ:&nbsp;<a href="ymsgr:sendIM?manhcuong_cn85&amp;">
                  <img align="absmiddle" border="0" src="http://opi.yahoo.com/online?u=manhcuong_cn85&amp;m=g&amp;t=1">
              </a>
              <span>&nbsp;Hotline:&nbsp;0974.177.422</span>
          </div>
          <div style="margin-top: 20px;">
              <?php echo $aryProduct['product_highlight'];?>
          </div>
      </td>
  </tr>
</tbody>
</table>

</td>
<td width="180" valign="top">

    <div style="font-size: 1px; height: 2px;"></div>

</td>


<td width="5" valign="top">&nbsp;

</td>


</tr>
</tbody></table>
</td>
</tr>

<tr>
    <td valign="top" align="center">

        <?php include 'home_footer.php';?>
    </td>
</tr>
</tbody>
</table>
</td>
<td width="9" background="/public/images/them/p.jpg">&nbsp;</td>
</tr>
</tbody>
</table>
